project(system-wrappers)

file(GLOB system_wrappers_sources
        ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cc
        ${CMAKE_CURRENT_SOURCE_DIR}/include/*.h)

add_library( ${PROJECT_NAME} ${LIB_TYPE} ${system_wrappers_sources} )

target_link_libraries(${PROJECT_NAME} PUBLIC rtc-base)

if ("${CMAKE_HOST_SYSTEM_PROCESSOR}" STREQUAL "AMD64" OR "${CMAKE_HOST_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
    target_compile_definitions(${PROJECT_NAME} PUBLIC WEBRTC_ENABLE_AVX2)
endif ()